<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@taglib prefix="p" uri="/WEB-INF/tld/page.tld" %>
<table class="table responsive-table" id="sorting-example1">
	<thead>
		<tr>
			<th scope="col">项目名</th>
			<th scope="col">项目描述</th>
			<th scope="col">创建人</th>
			<th scope="col">操作</th>
		</tr>
	</thead>
	<tbody>
		<c:forEach items="${projectPage.list }" var="project">
		<tr>
			<td>${project.name }</td>
			<td>${project.desc }</td>
			<td>${project.user_name }</td>
			<td class="low-padding">
				<span class="button-group compact">
					<a href="javascript:;" class="button" onclick='addProject("${project.id}")'>新建项目</a>
				</span>
			</td>
		</tr>
		</c:forEach>
	</tbody>
</table>
<div class="dataTables_footer">
	<div class="dataTables_info" id="sorting-advanced_info">
		第${projectPage.pageNumber }/${projectPage.totalPage }页,共${projectPage.totalRow }条记录
</div>
<p:page totalRow="${projectPage.totalRow }" pageNumber="${projectPage.pageNumber }" 
	totalPage="${projectPage.totalPage }"/>
</div>